<style>
    #bgDetailed .nickname{
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
    }
</style>
<div id="bgDetailed">
    <div class="heading">
        <a href="#"><img src="resource/images/img-17-8.jpg" /></a>
        情深见证榜
    </div>
    <div class="section">
        <div class="mode-select">
            <a class="mode selectModel" href="javascript:;">好友帮砍</a>
            <a class="mode" href="javascript:;">好友代付</a>
        </div>
        <div id="scene">
           <?php  if(!empty($output['count_civil'])){ ?>
              <?php foreach($output['count_civil'] as $k =>$v){?>

            <div class="individual" >
                <img class="Headportrait" src="<?php echo $v['headimgurl']; ?>"/>
                <?php
                 switch($k){
                     case '0':
                     echo " <img class='rank' src='resource/images/img-15-3.png' />";
                     break;
                     case '1':
                     echo " <img class='rank' src='resource/images/img-15-4.png' />";
                     break;
                     case '2':
                     echo " <img class='rank' src='resource/images/img-15-5.png' />";
                     break;
                   }
                ?>

                <div class="nickname"><?php  echo $v['nickname']; ?></div>
                <div class="cash">已减<span><?php echo round($v['cuont_sunm'],2); ?></span>元</div>
                <div class="cash">帮砍<span><?php echo $v['in_all'];?></span>次</div>
            </div>
         <?php  }?>
          <?php }?>
</div>

        <div id="express" style="display:none">
            <?php if(!empty($output['paid_civil'])){ ?>

                <?php foreach($output['paid_civil'] as $k =>$v) {?>
            <div class="individual">
                <img class="Headportrait" src="<?php echo $v['headimgurl']; ?>"/>
                <?php
                switch($k){
                    case '0':
                        echo " <img class='rank' src='resource/images/img-15-3.png' />";
                        break;
                    case '1':
                        echo " <img class='rank' src='resource/images/img-15-4.png' />";
                        break;
                    case '2':
                        echo " <img class='rank' src='resource/images/img-15-5.png' />";
                        break;
                }
                ?>
                <div class="nickname"><?php  echo $v['nickname']; ?></div>
                <div class="cash">代付<span><?php echo $v['paid_sunm']; ?></span>元</div>
            </div>

                <?php }?>
            <?php } ?>


        </div>
        <footer></footer>
    </div>
</div>
